////////////////////////////////////////////////////////////////////////////////
/// Blink.c
/// Example File to blink all LEDS attached to PORTB
/// Connections:
/// Leds connected to PORTB0-7 Active Low
////////////////////////////////////////////////////////////////////////////////

//Include the Header file for Input/Output Operations
#include <avr/io.h>
//Set Processor speed for delay functions
#define F_CPU 8000000 
//Include the Header file for Delay Operations
#include <util/delay.h>


 

int main(void) { 
  //////////////////////
  /// Initialization ///
  //////////////////////
  DDRB = 255; //Set PORTB for Output 

  ////////////
  /// Loop ///
  ////////////
  for (;;) { //Infinite Loop

    PORTB = 0; //Turn all LED's on
    _delay_ms(1000); //Delay 1000mS (1S)

    PORTB = 255; //Turn all LED's off
    _delay_ms(1000); //Delay 1000mS (1S)
  }
}
